package com.inexas.cu.client.mvp;

import java.util.*;

public class ValidationChangeNotification implements Notification {
	private final List<ValidationError> validationErrors;
	
	public ValidationChangeNotification(List<ValidationError> validationErrors) {
		this.validationErrors = validationErrors;
    }
	
	public boolean isValid() {
		return validationErrors == null;
	}

	public List<ValidationError> getValidationErrors() {
    	return validationErrors;
    }

}
